#pragma once
#include <string>

using namespace std;

#define WRITE_LINE(TO, TEXT) \
	TO << TEXT << std::endl

class CUtil
{
public:
	static wstring ReadFileText(const wstring &filePath);
	static void WriteFileText(const wstring &filePath, const wstring& fileText);
	static wstring GetTempFilePath(const wstring &prefix);
	static wstring GetOpenFileName(const wstring& title, HWND hwndOwner, bool mustExist=true);
	static wstring GetFirstPath(const wstring &commandLine);

private:
	CUtil(void) {}
	~CUtil(void) {}
};
